-- GENERATED SPELL FOR [Warder Corpse] --


function spell0_21304(pUnit, Event) --@Corpse Burst,Self--
pUnit:FullCastSpellOnTarget(36593,pUnit)
pUnit:RegisterEvent('Sorts_21304', 579, 1)
end

function Sorts_21304(pUnit, Event)
local choix_sorts_21304 = math.random(0, 0)
if choix_sorts_21304 == 0 then
pUnit:RegisterEvent('spell0_21304', 1, 1)
end
end

function mob21304_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21304', math.random(1500, 3000), 1)
end

function mob21304_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21304_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21304_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21304, 1, 'mob21304_Action')
RegisterUnitEvent(21304, 2, 'mob21304_Leave')
RegisterUnitEvent(21304, 3, 'mob21304_Kill')
RegisterUnitEvent(21304, 4, 'mob21304_Die')
